<%@page import="java.util.List"%>
<%@page import="com.demo.model.*" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>宠物信息</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<!-- 顶部导航栏开始 -->
	<nav class="navbar navbar-inverse navbar-fixed-top">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse"
				data-target="#nav">
				<span class="sr-only">Toggle</span> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#"> <img src="images/logo.gif"
				style="height: 50px" />
			</a>
		</div>
	</div>
	</nav>
	<!-- 顶部导航栏结束 -->
<div style="height: 150px; width: 100%;"></div>

<%List<Dog> list = (List<Dog>)request.getAttribute("list"); %>

<table border=1 align="center">
<tr>
    <td>姓名</td>
    <td>年龄</td>
    <td>出生日期</td>
    <td>种类</td>
    <td>颜色</td>
    <td>图片</td>
    <td>体长</td>
    <td>体重</td>
    <td>操作</td>
    <%for(Dog dog:list){%>
    	<tr>
    	  <td><%=dog.getUser_name()%></td>
    	  <td><%=dog.getAge() %></td>
    	  <td><%=dog.getBirthday() %></td>
    	  <td><%=dog.getType() %></td>
    	  <td><%=dog.getColor() %></td>
    	  <td><%=dog.getPic() %></td>
    	  <td><%=dog.getBody_length() %></td>
    	  <td><%=dog.getBody_weight() %></td>
    	  <td>
    	    <a href="userServlet?type=delDog&userId=<%=dog.getUser_id()%>"">删除</a>
    	    <a href="userServlet?type=selOnedog&userId=<%=dog.getUser_id()%>">编辑</a>
    	  </td>
    	</tr>
   <% } %>
</tr>

</table>
</body>
</html>